﻿using System.Collections.Generic;

namespace MyAMS
{
    /// <summary>
    /// 应用
    /// </summary>
    public interface IApplication
    {        
        /// <summary>
        /// 获取组件列表
        /// </summary>
        IEnumerable<IComponent> Components { get; }

        /// <summary>
        /// 获取组件数量
        /// </summary>
        int ComponentCount { get; }

        /// <summary>
        /// 开始时被调用
        /// </summary>
        void OnStart();

        /// <summary>
        /// 结束时被调用
        /// </summary>
        void OnEnd();
    }
}
